package com.flashflexpro.tanksinbattle.loader {

import com.flashflexpro.tanksinbattle.scene.dto.Dto;
import com.flashflexpro.tanksinbattle.scene.dto.DependencyDto;

import com.flashflexpro.tanksinbattle.scene.dto.FutureModuleInstDto;

import flash.events.Event;

public class LoadModuleEvent extends Event {

    public static const LOAD_NEXT_MODULE:String = "loadNextModule";

    public static const MODULE_READY:String = "moduleReady";

    public function LoadModuleEvent( type:String, nextModule:FutureModuleInstDto=null, throughDoor:Dto=null ) {
        super( type, true );
        _nextModule = nextModule;
        _throughDoor = throughDoor;
    }

    private var _nextModule:FutureModuleInstDto;
    private var _throughDoor:Dto;


    public function get nextModule():FutureModuleInstDto {
        return _nextModule;
    }


    public function get throughDoor():Dto {
        return _throughDoor;
    }

    override public function clone():Event {
        return new LoadModuleEvent( type, _nextModule, _throughDoor );
    }
}
}